const Router = require('koa-router');

const productController = require('../../controllers/productController');

const router = new Router()

router
    .get('/home/product', productController.getHomeProduct)
    .post('/home/hotProduct', productController.getHotProduct)
    .get('/product/category', productController.getCategory)
    .post('/product/getAllproduct', productController.getAllproduct)
    .post('/product/getProductByCategory', productController.getProductByCategory)
    .get('/product/getProductDetailsById', productController.getProductDetailsById)
    .get('/product/getProductPictureById', productController.getProductPictureById)

module.exports = router;